package cn.itcast.service.impl;

import cn.itcast.dao.StudentDao;
import cn.itcast.dao.impl.StudentDaoImpl;
import cn.itcast.domain.Student;
import cn.itcast.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {

    private StudentDao dao  = new StudentDaoImpl();

    //查询所有学生
    public List<Student> findall() {
        return dao.findall();
    }
}
